﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Application</Project>
// <FileName>PromotionInputDto.cs</FileName>
// <CreateTime>2017-06-05 22:17</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-06-05 22:17" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Vecen.BangChuang.BangChuang.Areas.DomainDtos;
using Vecen.BangChuang.BangChuang.Common.Dtos;

namespace Vecen.BangChuang.BangChuang.Promotions.Dtos {

    /// <summary>
    /// 推广对象录入
    /// </summary>
    [AutoMapTo(typeof(Promotion))]
    public class PromotionInputDto: EntityDto<int?>, ICityInputDto, IAttachmentInputDto {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 为某类用户展示
        /// </summary>
        public IEnumerable<string> ShowForUserTypes { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(256)]
        public string Description { get; set; }

        /// <summary>
        /// 商品介绍
        /// </summary>
        [StringLength(Int32.MaxValue)]
        public string GraphicContent { get; set; }

        /// <summary>
        /// 帮惠点击单价
        /// </summary>
        public decimal? InnerClickPrice { get; set; }

        /// <summary>
        /// 点击单价
        /// </summary>
        public decimal? ClickPrice { get; set; }

        /// <summary>
        /// 投放价
        /// </summary>
        public decimal? PutOnPrice { get; set; }

        /// <summary>
        /// 投放时效(小时)
        /// </summary>
        public int PutOnTimeLimit { get; set; }

        /// <summary>
        /// 大学名称
        /// </summary>
        [StringLength(64)]
        public string UniversityName { get; set; }

        /// <summary>
        /// 学院名称
        /// </summary>
        [StringLength(64)]
        public string CollegeName { get; set; }


        /// <summary>
        /// 省份ID
        /// </summary>
        public long? ProvinceId { get; set; }

        /// <summary>
        /// 团队奖励
        /// </summary>
        public decimal TeamBonus { get; set; }

        /// <summary>
        /// 城市ID
        /// </summary>
        public long? CityId { get; set; }

        /// <summary>
        /// 区县ID
        /// </summary>
        public long? DistrictId { get; set; }

        /// <summary>
        /// 本次请求关联的附件ID
        /// </summary>
        public List<int> AttachmentIds { get; set; }

        /// <summary>
        /// 本次请求需要删除的附件ID
        /// </summary>
        public List<int> DelAttachmentIds { get; set; }
    }
}